package com.meituan.pojo.resp;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.meituan.pojo.entity.User;
import lombok.Data;
import lombok.Value;
import org.apache.ibatis.annotations.Param;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class CommentResp {

    private int cid;
    //评论时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date time;
    //评论内容
    private  String word;
    //评论用户id
    private int uid;
    //评论商品id
    private int gid;
    //评论商品所属店铺id
    private int sid;
    //状态(1:正常,0:删除)
    private int state;

    private User user;


}
